package net.telesing.tcmc.core.web;

/**
 * Created by FengJZ on 2014/6/12.
 */
public class Ajax
{
    public static AjaxBean ok()
    {
        AjaxBean ab = new AjaxBean();
        ab.ok = true;
        return ab;
    }

    public static AjaxBean fail()
    {
        AjaxBean ab = new AjaxBean();
        ab.ok = false;
        return ab;
    }

    public static AjaxBean expired()
    {
        AjaxBean ab = new AjaxBean();
        ab.ok = false;
        ab.msg = "ajax.expired";
        return ab;
    }

}
